From: Xiaofeng Wang Date: Tue, 31 Mar 2026 03:30:08 +0000 (+0800) Subject: ci: Extend cargo fmt check to cover all Rust crates X-Git-Tag: archive/raspbian/2026.2-1+rpi1~1^2~10^2^2~4^2~5 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b4780f58b42406e3cbb88ad8be17199a8eb9d4b1;p=ostree.git ci: Extend cargo fmt check to cover all Rust crates The existing cargo fmt check only covered the ostree workspace package. Add fmt checks for the standalone test crates (tests/inst, tests/bootc-integration, tests/xtask) which are separate workspaces. Co-Authored-By: Claude Opus 4.6 Signed-off-by: Xiaofeng Wang --- diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 0e62cd5b..1e768863 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -24,7 +24,11 @@ jobs: - name: Cache Dependencies uses: Swatinem/rust-cache@ce325b60658c1b38465c06cc965b79baf32c1e72 - name: cargo fmt (check) - run: cargo fmt -p ostree -- --check -l + run: | + cargo fmt -p ostree -- --check -l + for d in tests/inst tests/bootc-integration tests/xtask; do + cargo fmt --manifest-path $d/Cargo.toml -- --check -l + done - name: Build run: cargo build --verbose --features=${{ env['CARGO_PROJECT_FEATURES'] }} - name: Run tests